package com.itheima.service;

import com.itheima.common.CheckDto;
import com.itheima.common.ChoiceDto;
import com.itheima.common.PageResult;
import com.itheima.pojo.hm.HmQuestions;

public interface QuestionsService {
    PageResult findList(Long page, Long pagesize, Integer subjectID, String question);

    void add(HmQuestions hmQuestion);

    void removeById(Integer id);

    HmQuestions findQuestion(Integer id);

    void modifyById(HmQuestions hmQuestions);

    void modifyChoiceState(ChoiceDto choiceDto);

    PageResult choice(Long page, Long pagesize);

    void checkQuestion(CheckDto checkDto);

    void modifyPublishState(Integer id, Integer publishState);
}
